package com.example.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * create by: Jipson Liang
 * on: 2020/11/1 23:15
 * desc: HelloWorld的接口
 */
@RestController
@RequestMapping("/hello")
public class HelloWorldController {

    // 浏览器访问格式：主机名:端口/项目访问路径/类访问路径/方法访问路径
    //  localhost:9090/helloworld/hello/gf
    @RequestMapping("/gf")
    public String hello(){
        return "Hello gongfang, hello 2111";
    }
}
